package com.cloud.portmana.ser.impl;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.cloud.portmana.dto.BgCycleThreeDS;
import com.cloud.portmana.entity.dao.IBgStatisticsManaHoldDao;
import com.cloud.portmana.entity.dao.IBgStatisticsManaSaleDao;
import com.cloud.portmana.ser.IBgStatisticsManaHoldService;
import com.cloud.sysmana.dto.SysStore;
import com.cloud.util.base.IUserInfo;
import com.cloud.util.page.PageInfo;
import com.cloud.util.page.ser.IPageService;
@Service
@Transactional
public class BgStatisticsManaHoldService implements IBgStatisticsManaHoldService {
	@Resource(name="pageService")
	private IPageService pageService;
	@Resource(name="bgStatisticsManaHoldDao")
	private IBgStatisticsManaHoldDao bgStatisticsManaHoldDao;
	@Override
	public PageInfo getPageInfo(PageInfo pageInfo, IUserInfo userInfo,Map<String, String> globalVariableCacheMap) {
		pageInfo = bgStatisticsManaHoldDao.getPageInfo(pageInfo,userInfo);
		pageInfo = pageService.getSQLPageInfo(pageInfo);
	    
		return pageInfo;
	}
	/**
	 * 获取系统用户分页数据
	 * @param pageInfo
	 * @return
	 */
	@Override
	public PageInfo listUserPage(PageInfo pageInfo){
		
		pageInfo = bgStatisticsManaHoldDao.listUserPage(pageInfo);
		pageInfo = pageService.getPageInfoList(pageInfo);
		
		return pageInfo;
		
	}
}
